package com.lxl.core;

import org.pentaho.di.core.exception.KettleException;

public class TaskExecutor extends Thread {
    protected BaseTask baseTask;
    protected TaskDataMeta taskDataMeta;

    public TaskResultMeta runTask() throws KettleException{
        baseTask.setTaskDataMeta(taskDataMeta);
        return baseTask.runTask();
    }

    public TaskDataMeta getTaskDataMeta() {
        return taskDataMeta;
    }

    public void setTaskDataMeta(TaskDataMeta taskDataMeta){
        this.taskDataMeta = taskDataMeta;
    }

    public BaseTask getBaseTask() {
        return baseTask;
    }

    public void setBaseTask(BaseTask baseTask) {
        this.baseTask = baseTask;
    }
}
